<!DOCTYPE html>
<head>
	<meta charset="utf-8">
	<title>权限列表--layui后台管理模板 2.0</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="/css/public.css" media="all" />
</head>
<body class="childrenBody">
<div class="gray-bg">
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-col-xs12">
				<div class="layui-card">
					<div class="layui-card-body">
						<form class="layui-form" lay-filter="form-menu-filter">
							<div class="layui-row">
								<div class="layui-col-md12">
									<div class="layui-row layui-col-space10 layui-form-item">
										<div class="layui-inline">
											<label class="layui-form-label">菜单名称：</label>
											<div class="layui-input-inline">
												<input type="text" name="menuName" id="menuName" placeholder=""
													   autocomplete="off" class="layui-input"/>
											</div>
										</div>
										<div class="layui-inline">
											<label class="layui-form-label">请求地址：</label>
											<div class="layui-input-inline">
												<input type="text" name="url" id="url" placeholder=""
													   autocomplete="off" class="layui-input"/>
											</div>
										</div>
									</div>
									<div class="layui-row" style="text-align: right">
										<button id="btnSearch" lay-submit class="layui-btn" data-type="reload"><i class="layui-icon">&#xe615;</i>搜索
										</button>
										<button  type="reset" class="layui-btn"><i class="layui-icon">&#xe669;</i>重置
										</button>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>

				<div class="layui-card">
					<div class="layui-card-body">
						<@shiro.hasPermission name="system:menu:add">
						<div class="layui-btn-container" >
							<button class="layui-btn layui-btn-sm" lay-filter="toolbar-menu-add"
									>新增根菜单
							</button>
							<button class="layui-btn layui-btn-sm" lay-filter="toolbar-menu-zhedie">全部折叠
							</button>
							<button class="layui-btn layui-btn-sm" lay-filter="toolbar-menu-zhankai">全部展开
							</button>
						</div>
						</@shiro.hasPermission>
						<table class="layui-table layui-form" id="table_menu" lay-filter="table_menu">
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="/layui/polyfill.min.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/layui/swotadmin.js"></script>
<script type="text/javascript">
    var prefix = "/system/menu";
</script>
<script>
    layui.config({
        base: '/js/system/menu/'
    }).use(['menu_list'], function () {
        var menu = layui.menu_list;
        console.log('menu:', menu)
        menu.init({
            "prefix": prefix

        });
    });
</script>

</body>
</html>


